package com.adapter.objectadapter.self;

public class VoltageAdapter implements Socket5V {

    private Voltage220V voltage220V;

    public VoltageAdapter(Voltage220V voltage220V) {
        this.voltage220V = voltage220V;
    }


    @Override
    public int get5V() {
        int vResource = voltage220V.get220VResource();
        int realResource = vResource/44;
        return realResource;
    }
}
